
 
<div class="mfooter">
		<a href="/" class="item <?php if ($this->_var['botnav'] == 'index'): ?>active<?php endif; ?>"><i class="iconfont icon-home"></i><br>
      首页</a>
    <a href="/index.php?m=koudai" class="item  <?php if ($this->_var['botnav'] == 'koudai'): ?>active<?php endif; ?>"><i class="iconfont icon-bao"></i><br>
      校园超市</a>
    <a href="/index.php?m=cart" class="item  <?php if ($this->_var['botnav'] == 'cart'): ?>active<?php endif; ?>"><i class="iconfont icon-cart"></i><br>
      购物车
    <span class="num" id="botnav_carnum" style="display:none">0</span>  
    </a>
   <a href="<?php if (! $this->_var['ssuser']): ?>/index.php?m=login<?php else: ?>/index.php?m=user<?php endif; ?>" class="item  <?php if ($this->_var['botnav'] == 'user'): ?>active<?php endif; ?>"><i class="iconfont icon-user"></i><br>
      我的
  <span class="num" id="notice_num" style="display:none">0</span>
   </a> 
      
</div>

<script>

//通知
function notice(){
	$.get("/index.php?m=ajax&a=NewMsg",function(data){
		if(data.total>0){
			$("#notice_num").html(data.total).show();
		}else{
			$("#notice_num").hide();
		}
	},"json");
	setTimeout(function(){
		notice();
	},30000);
}


$(function(){
	botnav_cart_num(true);
	notice();
});
</script>
